/* 考勤管理页面样式 */
.attendance-container {
  padding: 20rpx;
  background-color: #f5f5f5;
  min-height: 100vh;
}

/* 日历区域 */
.calendar-section {
  background: #fff;
  border-radius: 16rpx;
  padding: 24rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24rpx;
}

.calendar-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
}

.month-selector {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 28rpx;
}

.month-arrow {
  margin: 0 16rpx;
  font-size: 24rpx;
}

/* 日历网格 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4rpx;
  grid-auto-rows: minmax(80rpx, auto);
}

.week-day {
  text-align: center;
  font-size: 24rpx;
  color: #999;
  padding: 16rpx 0;
}

.calendar-day {
  text-align: center;
  padding: 16rpx 0;
  font-size: 28rpx;
  position: relative;
  min-height: 80rpx;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.day-normal {
  color: #333;
}

.day-weekend {
  color: #ff6b6b;
}

.day-today {
  background-color: #1890ff;
  color: #fff;
}

/* 考勤状态标记 */
.attendance-status {
  position: absolute;
  bottom: 8rpx;
  left: 50%;
  transform: translateX(-50%);
  width: 12rpx;
  height: 12rpx;
  border-radius: 50%;
}

.status-present {
  background-color: #52c41a;
}

.status-leave {
  background-color: #faad14;
}

.status-absent {
  background-color: #ff4d4f;
}

/* 签到按钮样式 */
.day-checkin {
  cursor: pointer;
  transition: all 0.3s ease;
}

.day-checkin:active {
  transform: scale(0.95);
}

.checkin-btn {
  position: absolute;
  bottom: 8rpx;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1890ff, #52c41a);
  color: #fff;
  font-size: 20rpx;
  padding: 4rpx 12rpx;
  border-radius: 16rpx;
  font-weight: 600;
  box-shadow: 0 2rpx 8rpx rgba(24, 144, 255, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 2rpx 8rpx rgba(24, 144, 255, 0.3);
  }
  50% {
    box-shadow: 0 2rpx 16rpx rgba(24, 144, 255, 0.6);
  }
  100% {
    box-shadow: 0 2rpx 8rpx rgba(24, 144, 255, 0.3);
  }
}

/* 公告区域 */
.notice-section {
  background: #fff;
  border-radius: 16rpx;
  padding: 24rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.notice-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
}

.notice-more {
  font-size: 24rpx;
  color: #1890ff;
}

.notice-item {
  padding: 20rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-content {
  font-size: 28rpx;
  color: #666;
  line-height: 1.6;
}

.notice-time {
  font-size: 24rpx;
  color: #999;
  margin-top: 8rpx;
}